#!/usr/bin/env python
# -*- coding:utf-8 -*-
__author__ = 'shawn'

words = [
'look' , 'into' , 'my' , 'eyes' , 'look' , 'into' , 'my' , 'eyes' ,
'the' , 'eyes' , 'the' , 'eyes' , 'the' , 'eyes' , 'not' , 'around' , 'the' ,
'eyes' , "don't", 'look' , 'around' , 'the' , 'eyes' , 'look' , 'into' ,
'my' , 'eyes' , "you're", 'under'
]

from collections import Counter

#找出一个序列中出现在次数最多的元素
word_counts = Counter(words)
print(word_counts)

#出现频率前3的单词
print(word_counts.most_common(3))

morewords = ['why','are','you','not','looking','in','my' ,'eyes']

a=Counter(words)
b=Counter(morewords)
print(b)
c = a + b
print(c)

